<template>
  <div>
    <div class="title">
      <img
        class="tu"
        src="http://liufusong.top:8080/img/profile/bg.png"
        alt=""
      />
      <div class="info">
        <div class="headtu">
          <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
        </div>
        <div class="login">
          <div class="name">游客</div>
          <div class="btn"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page'
}
</script>

<style scoped lang="less">
.title {
  min-height: 300px;
  position: relative;
  .tu {
    width: 100%;
  }
  .info {
    position: absolute;
    background: #fff;
    width: 85%;
    height: 55%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 3px #ddd;
    margin: 50px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
    .headtu {
      position: relative;
      transform: translateY(-50%);
      border-radius: 50%;
      width: 70px;
      height: 70px;
      border: 5px solid #f5f5f5;
      display: inline-block;
      box-shadow: 0 2px 2px #bdbdbd;
      img {
        width: 100%;
        border-radius: 50%;
      }
    }
    .login {
      padding-top: 15px;
      .name {
        margin-top: -30px;
        margin-bottom: 10px;
      }
    }
  }
}
</style>
